package com.prothink.service.impl;


import com.prothink.dao.ProductViewsDao;
import com.prothink.entity.ProductViews;
import com.prothink.service.ProductViewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductViewsServiceMpl implements ProductViewsService {
    @Autowired
    private ProductViewsDao productViewsDao;

    @Override
    public List getProductViews(ProductViews productViews) {
        return productViewsDao.getProductViews(productViews);
    }

    @Override
    public Integer addProductViews(ProductViews productViews) {
        return productViewsDao.addProductViews(productViews);
    }

    @Override
    public List getProductWeekandModViews(ProductViews productViews) {
        return productViewsDao.getProductWeekandModViews(productViews);
    }

    @Override
    public List getProductOnModViews(ProductViews productViews) {
        return productViewsDao.getProductOnModViews(productViews);
    }

    @Override
    public List getProductOnWeek(ProductViews productViews) {
        return productViewsDao.getProductOnWeek(productViews);
    }
}
